package com.shopping.common.core.constant;

import lombok.Getter;

/**
 * @program: shopping-mall
 * @ClassName HttpStatusCode
 * @description:
 * @author: zlw
 * @create: 2024-04-10 00:51
 * @Version 1.0
 **/
@Getter
public enum ErrorCodeEnum {

    LOGIN_ERRROR("账号名或密码错误"),
    DATA_NOT_EXIST("数据不存在,请刷新后重试!"),
    UNAUTHORIZED_LOGIN("当前用户尚未登录或登录已超时,请重新登录! "),
    DATA_UPDATE_FAIL("数据更新失败,请刷新后重试!"),
    PARAMETER_CANNOT_BE_EMPTY("参数不能为空!")
    ;



    /**
     * 错误信息
     */
    private final String errorMessage;


    ErrorCodeEnum( String errorMessage) {
        this.errorMessage = errorMessage;
    }
}
